// 25/04/2009 Dennis
class GraphForm extends Form
{
  Graph graph;
  public GraphForm()
  {
    title = "Popularity";
    
    graph = new Graph();
    graph.x = 0;
    graph.y = 0;
    graph.width = width;
    graph.height = height;
    addControl(graph);
  }
  
  public void processEvent(Control c)
  {
    // possible event handling goes here
  }
  
  public void setActive()
  {
    ArrayList items = db.queryPopularity();
    graph.maxVal = db.maxPop;
    graph.items = items;
  }
}
